var app = new Vue({
	el: "#container",
	data: {
		clist: getCompanyById()
	},
	methods: {
		getImgUrl(imgname) {
			var url = 'http://101.37.77.75:8080/lagouwangImg/img/' + imgname + '.jpg'
			return url
		}

	}
})

function getCompanyById() {
	var list
	$.ajax({
		url: "http://101.37.77.75:8080/lagouwang/CompanySevlet?t=getCompanyById",
		xhrFields: {
			withCredentials: true
		},
		success: function(data) {
			list = data.data[0]
		},
		dataType: "json",
		async: false
	})
	return list
}